package com.wzs.easytobuy.mapper;

import com.wzs.easytobuy.model.ShoppingCar;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Mapper
public interface ShoppingCarMapper {
    int deleteByPrimaryKey(String id);

    int insert(ShoppingCar record);

    int insertSelective(ShoppingCar record);

    ShoppingCar selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(ShoppingCar record);

    int updateByPrimaryKey(ShoppingCar record);

    List<ShoppingCar> selectByUid(String userId);

    int addProduct(ShoppingCar s);

    ShoppingCar selectByFidAndUid(String formatId,String userId);

    int updateNumById(int number, String id);

    int getTotalByCondition(HashMap<String, Object> map);

    List<Map<String, Object>> getShoppingCarListByCondition(HashMap<String, Object> map);

    List<Map<String, Object>> carList(List<String> ids);
}